package com.azier.generator;

import com.azier.kapacitor.util.StringUtil;
import lombok.Getter;
import lombok.Setter;

import java.beans.Transient;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/11/11 17:26
 * 3
 */
@Setter
@Getter
public class Arg {
    private Integer timeArg;

    private Integer isList;

    private String name;

    //基础类型+String
    private String type;

    //DoubleQuotesArg,LambdaArg,OriginalArg,SingleQuotesArg
    private String convertType;

    @Transient
    public boolean isEmpty(){
        if(timeArg==null&&isList==null&&StringUtil.isEmpty(name)&&StringUtil.isEmpty(type)&&StringUtil.isEmpty(convertType)){
            return true;
        }
        return false;
    }
}
